package com.evon.yardmanagement.ui.dto;

import org.dozer.Mapping;

//import com.evon.yardmanagement.ui.Active;

/**
 * DTO class for passing the transporter information to UI.
 * 
 * @author vgaurav
 * 
 */
public class TransporterDTO {

	private int id;
	public YardDTO getYard() {
		return yard;
	}

	public void setYard(YardDTO yard) {
		this.yard = yard;
	}

	public void setYardId(int yardId) {
		this.yardId = yardId;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	private String name;
	private String address;
	private String city;

	private String phone;
	private String description;
	
	@Mapping("active")
	private boolean active = true;
	private YardDTO yard;
	private int yardId;

	private String contactPerson;
	
	public TransporterDTO(){
		this.yard = new YardDTO();
	}

	public void setYardId(Integer yardId) {
		yard.setId(yardId);
	}

	public void setYardName(String yardName) {
		yard.setName(yardName);
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getYardId() {
		return yard.getId();
	}

	public String getYardName() {
		return yard.getName();
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	
	public String getContactPerson() {
		return contactPerson;
	}

	public void setContactPerson(String contactPerson) {
		this.contactPerson = contactPerson;
	}

	public boolean isActive() {
		return active;
	}

	public void setActive(boolean active) {
		this.active = active;
	}

}
